﻿@model Pro_LandModel
@{
    List<Pro_LandModel> lstLand = ViewBag.lstLand != null ? (List<Pro_LandModel>)ViewBag.lstLand : new List<Pro_LandModel>();
}
@{
    
    foreach (var item in lstLand)
    {
        var imgUrl = "../../Content/Image/admin/noImage.png"; 
        if(!string.IsNullOrEmpty(item.LandImage))
        {
            imgUrl = "../Uploads/"+ item.LandImage;
        }
        
        <div class="landRow Clearfix" onclick="openLandDetail('@item.url')">
            @Html.Hidden("oder", item.Code) 
            <div class="LandTitleList">@item.LandName</div>
            <div class="Clearfix">
                <div class="landDescList">
                    <img class="imgAvatarList" src="@imgUrl" alt="@item.LandName" />
                     @Html.Raw(item.Description)
                </div>
                <div class="LandInfoList">
                    <div>
                        <span>Ngày đăng :</span> @String.Format("{0:d/MM/yyyy HH:mm}", item.CreateDate)
                     </div>
                     <div>
                        <span>Diện tích :</span> @item.LandSquare
                     </div>
                     <div>
                        <span>Giá :</span> @string.Format("{0:0,0}", item.LandPrice)
                     </div>
                </div>
            </div>
    </div>
    }
}
